clear 
set more off
cd "/Users/yasenov/Dropbox/mariel_boatlift/jhr_version/jhr_figures"
global folder /Users/yasenov/Dropbox/mariel_boatlift/revision_version/revision_data/
set scheme s1color

use $folder/aux_may-org.dta

keep if low_skilled == 1
drop if (ftpt79 == 0 & year <= 1988) | (ftpt89 ==1 & year > 1988)
keep if classer == 1 | classer == 2
keep if age >= 25 & age <= 59
keep if ethnic == 8
keep if male == 1
keep if loguearnhre > 0

keep if smsarank == 26

collapse (mean) loguearnhre [pw=earnwt], by(year smsarank)

replace loguearnhre = . if year < 1977
replace loguearnhre = loguearnhre - .155

twoway (line loguearnhre year, lcolor(black) lwidth(thick) lpattern(dash)), ///
	xline(1979, lpattern(dash) lcolor(black)) ///
	xtitle("") ///
	ytitle("") ///
	subtitle("Log Hourly Wages in Miami" "May+ORG CPS, Borjas (2017) Sample") ///
	legend(label(1 "Miami") label(2 "Our Synthetic Control") label(3 "Borjas (2015) Synthetic Control")) ///
	xlabel(1973 "1973" 1975 "75" 1977 "77" 1979 `""79" "Pre""' 1981 `""81" "Post""' 1983 "83" 1985 "85" 1987 "87" 1989 "89" 1991 "91") ///
	xscale(range(1972 1992))  plotregion(lwidth(none)) ///
	text(1.9 1990.8 "Panel C") ///
	yscale(range(1.3 1.9)) ylabel(1.3(.15)1.9)

graph copy three, replace
